﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;

namespace ProjectSem40701.Admin
{
    public partial class ChooseRound : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                
            }
        }

        protected void btnSubmit_Click(object sender, EventArgs e)
        {
            try
            {
                if (this.cbbRound.SelectedValue.ToString() != String.Empty)
                {
                    Session["rid"] = Convert.ToInt32(this.cbbRound.SelectedValue.ToString());
                }
                else
                {
                    Session["rid"] = -1;
                }
                Response.Redirect("ReportRoundResult.aspx");
            }
            catch
            { 
                //bao loi
            }
        }

        protected void cbbExam_SelectedIndexChanged(object sender, EventArgs e)
        {
            try
            {
                this.cbbRound.DataBind();
            }
            catch
            { 
                //bao loi
            }

        }
    }
}
